package com.ant.storage.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("other_out")
@ApiModel(value="其他出库对象")
public class OtherOut {

    @TableId(value = "other_out_id", type = IdType.AUTO)
    private Integer other_out_id;

    @ApiModelProperty(value = "出库时间")
    @TableField("warehouse_out_time")
    private String warehouse_out_time;

    @ApiModelProperty(value = "城市id")
    @TableField("city_id")
    private Integer city_id;

    @ApiModelProperty(value = "部门id")
    @TableField("department_id")
    private Integer department_id;

    @ApiModelProperty(value = "出库操作人")
    @TableField("warehouse_out_staff")
    private String warehouse_out_staff;

    @ApiModelProperty(value = "领取人")
    @TableField("recipient")
    private String recipient;

    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    private String remarks;

    @TableField(exist = false)
    @ApiModelProperty(value = "商品")
    private List<OtherOutCommodity> list;

    @TableField(exist = false)
    @ApiModelProperty(value = "开始时间")
    private String start_time;

    @TableField(exist = false)
    @ApiModelProperty(value = "结束时间")
    private String end_time;

    @TableField(exist = false)
    private City city;

    @TableField(exist = false)
    private City dept;
}
